/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.system.repository;

import java.util.List;

import iaas.repository.BaseRepository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.system.entity.Permission;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface PermissionDao extends BaseRepository<Permission, Long> ,JpaSpecificationExecutor<Permission>{

	public List<Permission> findByCorpIdAndStatus(Long corpid,Integer status);

	public List<Permission> findByCorpIdAndParentIdAndTypeAndStatus(Long corpid, Long pid, Integer type, Integer status);
			
}
